<?php
header("Content-Type: text/html");
header("charset: utf-8");
include_once("_common.php");


if($gubun == 1){
	$SQL =  "UPDATE g4_write_sellitem a        ";
	$SQL .= "   SET a.wr_datetime = now(), a.wr_9 = '' ";
	$SQL .= " WHERE a.wr_id = ".$wr_id."                ";
	
	sql_query($SQL);
}else{
	$SQL =  "UPDATE g4_write_sellitem a        ";
	$SQL .= "   SET a.wr_9 = 'SELL' ";
	$SQL .= " WHERE a.wr_id = ".$wr_id."                ";
	sql_query($SQL);
}

?>